package com.glsc.ngateway.common.base.domain.mysql.opmanage.report.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import javax.persistence.*;
import java.util.Date;

@Data
@Entity
@Table(name = "t_subhk_fund_navpershs")
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties({"hibernateLazyInitializer", "handler"})
@IdClass(NAVPerShsId.class)
public class NAVPerShs {
    @Column(name="PF")
    @ExcelProperty("PF")
    private String pf;

    @Column(name="InstrType")
    @ExcelProperty("InstrType")
    private String instrType;

    @Column(name="TrdCcy")
    @ExcelProperty("TrdCcy")
    private String trdCcy;

    @Column(name="RptCcy")
    @ExcelProperty("RptCcy")
    private String rptCcy;

    @Column(name="FxRate")
    @ExcelProperty("FxRate")
    private Double fxRate;

    @Column(name="Pos")
    @ExcelProperty("Pos")
    private Double pos;

    @Column(name="UdlyPos")
    @ExcelProperty("UdlyPos")
    private Double udlyPos;

    @Column(name="`Invested Cost`")
    @ExcelProperty("Invested Cost")
    private Double investedCost;

    @Column(name="TPL")
    @ExcelProperty("TPL")
    private Double tpl;

    @Column(name="YTPL")
    @ExcelProperty("YTPL")
    private Double ytpl;

    @Column(name="MTPL")
    @ExcelProperty("MTPL")
    private Double mtpl;

    @Column(name="DTPL")
    @ExcelProperty("DTPL")
    private Double dtpl;

    @Column(name="MarketValue")
    @ExcelProperty("MarketValue")
    private Double marketValue;

    @Column(name="OutstandingShs")
    @ExcelProperty("OutstandingShs")
    private Double outstandingShs;

    @Column(name="`NAV/Shs`")
    @ExcelProperty("NAV/Shs")
    private Double navShs;

    @Id
    @Column(name="fc_fundname")
    private String fundname;

    @Id
    @Column(name="fd_date")
    private Date date;

    @Column(name="HeadTitle")
    private String headTitle;

}
